package server;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;

public class ZhuoerAdvServer {

	public static void main(String[] args) {
		try {
			ServerSocket st = new ServerSocket(6666);
			System.out.println(st);
			System.out.println("服务器启动了！");
			while (true) {
				// Socket s = st.accept();
				// new TalkThread(st.accept()).start();
				// new SendFileThread(st.accept()).start();
				// new AdvancedFileThread(st.accept()).start();
				new ObjectSendThread(st.accept()).start();
			}

		} catch (IOException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}

	}

}
